<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>积分商城 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="webmall Team" />
<meta name="Copyright" content="webmall" />
<#if (systemConfig.metaKeywords)! != ""><meta name="keywords" content="${systemConfig.metaKeywords}" /></#if>
<#if (systemConfig.metaDescription)! != ""><meta name="description" content="${systemConfig.metaDescription}" /></#if>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/shop/css/login.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/shop/css/register.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/shop/css/index.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/webmall/css/pointproduct.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/common/css/tabswitch.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/shop/js/login.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/register.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/index.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/product.js"></script>
<script type="text/javascript" src="${base}/template/common/js/tabswitch.js"></script>
<link href="${base}/template/common/paper/paper.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/common/paper/paper.js"></script>
<script type="text/javascript">
	$().ready( function() {
		$(".kinds div").click( function(event) {
			$(".kinds div").each(function() {
				$this = $(this);
				$(this).removeClass("kinds_checked");
			})
			$(this).addClass("kinds_checked"); 
			var $this = $(this);
			$('#'+$(this).metadata().elementId).val($(this).metadata().value);
			loadingPointProduct(1);
		});
		
		$('.btn_pointgo').click( function() {
			var $this = $(this);
			if ($.cookie("loginMemberUsername") == null) {
				$.flushHeaderInfo();
				$.loginWindowShow();
				return false; 
			}
			else
			{
				window.location='${base}/shop/pointproduct!exchange.action?id=${(pointproduct.id)!}';
			}
		});
		
	});
function loadingPointProduct(page)
{
	if(page==undefined||page==null || isNaN(page) || page < 1)
	{
		page=1;
	}
	$('#pageNumber').val(page);
	$('#pointForm').submit();
}
</script>
</head>
<body class="pointproduct">
		<#include "/WEB-INF/template/shop/header.ftl">
		
		<div class="blank"></div>
		<div class="body">
			<div class="left">
				<div class="picName">
					<img src="${base}/${(pointproduct.imageUrl)!}" />
				</div>
				<div class="productDesc">
					<div class="productName">礼品名称: ${(pointproduct.name)!}</div>
					<div class="productPoint">兑换所需积分:${(pointproduct.point)!}</div>
					<div class="btn_yellow btn_pointgo" >立即兑换</div>
				</div>
				<div class="blank"></div>
				<div class="desc">
					${(pointproduct.description)!}
				</div>
			</div>
		</div>
	<div class="blank"></div>
	<#include "/WEB-INF/template/shop/footer.ftl">
</body>
</html>